The first line legitimately fails because 'import' is a reserved word,
and isn't allowed as a variable name.
The use of reserved words as property names - i.e. your 3rd line (test
= { import: xxx }) - was legitimized by ECMAScript 5 and works in
plain JS in all recent browsers. Unfortunately we only added support
for this in SJS earlier this year and it hasn't made it into a
released version yet :/
Our current planning for a new release of SJS & Conductance puts us
somewhere into spring '16, so the only thing I can suggest if you need
this behavior is to use the versions of Conductance/SJS straight from
the github master branch (we Conductance from the github master branch
for a number of projects in production, so we consider them 'stable').
Provided you have nodejs installed on your system, and you have a
basic development tools setup, installing conductance from github
should be as easy as:
git clone
https://github.com/onilabs/conductance.git
cd conductance
make
(Before running make, you might want to edit conductance/package.json
and throw away the devDependencies and optionalDependencies, so that
the build is faster)
Cheers,
Alex
> --
> You received this message because you are subscribed to the Google Groups
> "StratifiedJS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
stratifiedjs...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.