21 lines
No EOL
1.4 KiB
Text
21 lines
No EOL
1.4 KiB
Text
tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts(1,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
|
tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts(1,35): error TS2304: Cannot find name 'HTMLElement'.
|
|
tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts(2,42): error TS2304: Cannot find name '_classNameRegexp'.
|
|
|
|
|
|
==== tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts (3 errors) ====
|
|
export function removeClass (node:HTMLElement, className:string) {
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
~~~~~~~~~~~
|
|
!!! error TS2304: Cannot find name 'HTMLElement'.
|
|
node.className = node.className.replace(_classNameRegexp(className), function (everything, leftDelimiter, name, rightDelimiter) {
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
~~~~~~~~~~~~~~~~
|
|
!!! error TS2304: Cannot find name '_classNameRegexp'.
|
|
return leftDelimiter.length + rightDelimiter.length === 2 ? ' ' : '';
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
});
|
|
~~~~
|
|
}
|
|
~
|
|
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided. |