coffeescript
coffeescript copied to clipboard
Embeded JS can override reserved names like __extends, __hasProp, etc.
x = 1 # to force embebded js after the declaration of __extends
`__extends = function(){}` # breaks __extends functionality
class S extends Array
console.log (new S).push.toString()
This is an edge case, though I don't think it will hurt to report this. Moreover, checking the embeded JS for overriding CS specific reserve words is an over kill.
Anyway, do you think this should be documented?
Embedded JS shouldn't be used.
No.