You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with --compilation_level ADVANCED_OPTIMIZATIONS --jscomp_error=checkTypes. You'll get:
java.lang.RuntimeException: java.lang.RuntimeException: INTERNAL COMPILER ERROR.
Please report this problem.
null
Node(CALL): test.js:2:2
a.base(this, 'constructor');
Parent(EXPR_RESULT): test.js:2:2
a.base(this, 'constructor');
at com.google.javascript.jscomp.Compiler.runInCompilerThread(Compiler.java:678)
at com.google.javascript.jscomp.Compiler.compile(Compiler.java:592)
at com.google.javascript.jscomp.Compiler.compile(Compiler.java:562)
at com.google.javascript.jscomp.AbstractCommandLineRunner.doRun(AbstractCommandLineRunner.java:780)
at com.google.javascript.jscomp.AbstractCommandLineRunner.run(AbstractCommandLineRunner.java:374)
at com.google.javascript.jscomp.CommandLineRunner.main(CommandLineRunner.java:1004)
Caused by: java.lang.RuntimeException: INTERNAL COMPILER ERROR.
Please report this problem.
null
Node(CALL): test.js:2:2
a.base(this, 'constructor');
Parent(EXPR_RESULT): test.js:2:2
a.base(this, 'constructor');
at com.google.javascript.jscomp.ProcessClosurePrimitives.maybeProcessClassBaseCall(ProcessClosurePrimitives.java:660)
at com.google.javascript.jscomp.ProcessClosurePrimitives.visit(ProcessClosurePrimitives.java:271)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:563)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:557)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:557)
at com.google.javascript.jscomp.NodeTraversal.traverseFunction(NodeTraversal.java:597)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:551)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:557)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:557)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:557)
at com.google.javascript.jscomp.NodeTraversal.traverseBranch(NodeTraversal.java:557)
at com.google.javascript.jscomp.NodeTraversal.traverse(NodeTraversal.java:287)
at com.google.javascript.jscomp.ProcessClosurePrimitives.process(ProcessClosurePrimitives.java:175)
at com.google.javascript.jscomp.DefaultPassConfig$9$1.process(DefaultPassConfig.java:1007)
at com.google.javascript.jscomp.PhaseOptimizer$NamedPass.process(PhaseOptimizer.java:271)
at com.google.javascript.jscomp.PhaseOptimizer.process(PhaseOptimizer.java:215)
at com.google.javascript.jscomp.Compiler.check(Compiler.java:793)
at com.google.javascript.jscomp.Compiler.compileInternal(Compiler.java:706)
at com.google.javascript.jscomp.Compiler.access$000(Compiler.java:88)
at com.google.javascript.jscomp.Compiler$2.call(Compiler.java:595)
at com.google.javascript.jscomp.Compiler$2.call(Compiler.java:592)
at com.google.javascript.jscomp.Compiler$3.call(Compiler.java:639)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
... 26 more
The really annoying thing is that if you add
a.prototype.m=function(){};
then the compiler hangs for a few seconds longer and outputs:
test.js:2: ERROR - Property base never defined on a
a.base(this, 'constructor');
^
1 error(s), 0 warning(s), 81.8% typed
And with a large code base which depend on this type, this could be like forever. I had to start chopping my code to see when the compiler would stop hanging before realising it was a non-declared parent.
The text was updated successfully, but these errors were encountered:
Hi,
try to compile
with
--compilation_level ADVANCED_OPTIMIZATIONS --jscomp_error=checkTypes
. You'll get:The really annoying thing is that if you add
then the compiler hangs for a few seconds longer and outputs:
And with a large code base which depend on this type, this could be like forever. I had to start chopping my code to see when the compiler would stop hanging before realising it was a non-declared parent.
The text was updated successfully, but these errors were encountered: