16 lines
960 B
Plaintext
16 lines
960 B
Plaintext
|
==== tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts (3 errors) ====
|
||
|
export function removeClass (node:HTMLElement, className:string) {
|
||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
~~~~~~~~~~~
|
||
|
!!! Cannot find name 'HTMLElement'.
|
||
|
node.className = node.className.replace(_classNameRegexp(className), function (everything, leftDelimiter, name, rightDelimiter) {
|
||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
~~~~~~~~~~~~~~~~
|
||
|
!!! Cannot find name '_classNameRegexp'.
|
||
|
return leftDelimiter.length + rightDelimiter.length === 2 ? ' ' : '';
|
||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||
|
});
|
||
|
~~~~
|
||
|
}
|
||
|
~
|
||
|
!!! Cannot compile external modules unless the '--module' flag is provided.
|