google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.18k stars 580 forks source link

Strange error on including Traceur runtime #1983

Open sonicoder86 opened 9 years ago

sonicoder86 commented 9 years ago

When i include the runtime on my page i get this error: Uncaught Error: ModuleEvaluationError: $traceurRuntime.hasNativeSymbol is not a function in traceur-runtime@0.0.91/src/runtime/polyfills/polyfills.js After Traceur i use a built browserify module.

johnjbarton commented 9 years ago

Please look in the file you called "the runtime" and verify that it has the line

    hasNativeSymbol: hasNativeSymbolFunc,

in the definition of global.$traceurRuntime

sonicoder86 commented 9 years ago

it is the latest published version 0.0.91, and it has no such property

arv commented 9 years ago

Strange. The code is still there:

https://github.com/google/traceur-compiler/blob/master/src/runtime/runtime.js

I also see it in node_modules/traceur/bin/traceur-runtime.js in a version 0.0.91 dependency.