slightlyoff / cassowary.js

Cassowary/JS, better, faster, future-ready
Other
1.69k stars 107 forks source link

"use strict" in this file makes PhantomJS crash with Cassowary #50

Closed bergie closed 10 years ago

d4tocchini commented 10 years ago

Been annoying not being able to run things in Phantom. Appears as though it's not strict mode compliant, suspect it's the getter setter stuff...

d4tocchini commented 10 years ago

@slightlyoff, is c.Point (the file causing problems with Phantom.js) deprecated? Only being used in demos & tests, nowhere else in source....

bergie commented 10 years ago

@d4tocchini @slightlyoff actually we can keep Point.js around, PhantomJS parser just doesn't like using the property name as the argument in setters when in strict mode. See the latest commit

d4tocchini commented 10 years ago

Awesome, thanks