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
In Closure Compiler ADVANCED mode, JSC_CONSTRUCTOR_NOT_CALLABLE warning is correctly thrown in compile time.
But in SIMPLE or WHITESPACE_ONLY mode, no warnings are detected in compile time and the runtime doesn't throw any errors.
Should the polyfill runtime of Closure Compiler for the constructors throw runtime error for SIMPLE and WHITESPACE_ONLY mode?
I will send a PR if necessary.
The text was updated successfully, but these errors were encountered:
In ES2015+, calling constructors of classes and builtin classes (Map, Set, WeakMap and WeakSet) without
new
throwsTypeError
.In Closure Compiler
ADVANCED
mode,JSC_CONSTRUCTOR_NOT_CALLABLE
warning is correctly thrown in compile time.But in
SIMPLE
orWHITESPACE_ONLY
mode, no warnings are detected in compile time and the runtime doesn't throw any errors.Should the polyfill runtime of Closure Compiler for the constructors throw runtime error for
SIMPLE
andWHITESPACE_ONLY
mode?I will send a PR if necessary.
The text was updated successfully, but these errors were encountered: