-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
How to reproduce
skpm create test
cd test
echo "export default function(context) { fetch('https://google.com'); }" > src/my-command.js
npm run start
Error trace:
SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode..
Plugin “my-command”, line 274:
» const SuperInit = (0, _runtime.SuperCall)(NSStringFromSelector("init"), [], { type: "@" });
Compiled code
// super when returnType is id and args are void
// id objc_msgSendSuper(struct objc_super *super, SEL op, void)
// HERE
const SuperInit = (0, _runtime.SuperCall)(NSStringFromSelector("init"), [], { type: "@" });
// HERE
// Returns a real ObjC class. No need to use new.
Info:
Mac 10.11.6
xcode 7.3.1
npm 5.3.0
skpm 1.0.8
Metadata
Metadata
Assignees
Labels
No labels