Hey,
I am currently implementing strong mode in defrac. Everything went smooth so far but I am experiencing an error I can't explain.
The following works as expected:
(function() {
"use strong";
class A {
static neu() {
new B()
}
constructor() {
new B()
}
}
class B {
constructor() { print("B"); }
}
A.neu(); //B
new A(); //B
})();
But for some reason I get a ReferenceError when running a more complex example.
d8 --strong-mode --harmony_arrow_functions app.js
app.js:105: ReferenceError: In strong mode, declaring variable 'java_lang_Throwable' before its use is required
if(e0 instanceof java_lang_Throwable) {
^^^^^^^^^^^^^^^^^^^
ReferenceError: In strong mode, declaring variable 'java_lang_Throwable' before its use is required
The source file causing the issue is attached. Compiling it with Traceur works so I don't suspect a syntax error causing the issue.
I'm on V8 commit 83321b0
Best,
Joa