Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Conversation

jem-computer
Copy link

@darknoon I think this module needs to be transpiled to work in some environments, possibly those with an old JSC environment.

I found the bug on my home Mac, and it was just reported here too: airbnb/react-sketchapp#90

SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode..
Plugin “react-sketchapp: Foursquare + Google Maps”, line 12175:
» const SuperInit = (0, _runtime.SuperCall)(NSStringFromSelector("init"), [], { type: "@" });

With this change, it gets transpiled to

var SuperInit = (0, _runtime.SuperCall)(NSStringFromSelector("init"), [], { type: "@" });

Thoughts?

@darknoon
Copy link
Owner

@jongold I don't see a solution to the arguments issue with transpilation here, so how will it not break?

@darknoon
Copy link
Owner

darknoon commented Aug 8, 2017

for #2

leonardpauli added a commit to leonardpauli/cocoascript-class that referenced this pull request Jun 3, 2018
…on#1 // using babel-preset-env with targets safari 6 + Function+arguments workaround
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants