2015-04-27 03:31:47 +02:00
|
|
|
tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts(1,17): error TS1148: Cannot compile modules unless the '--module' flag is provided.
|
2014-09-12 22:35:07 +02:00
|
|
|
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'.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/parser/ecmascript5/parserArgumentList1.ts (3 errors) ====
|
|
|
|
export function removeClass (node:HTMLElement, className:string) {
|
2015-03-05 03:15:55 +01:00
|
|
|
~~~~~~~~~~~
|
2015-04-27 03:31:47 +02:00
|
|
|
!!! error TS1148: Cannot compile modules unless the '--module' flag is provided.
|
2014-07-13 01:04:16 +02:00
|
|
|
~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name 'HTMLElement'.
|
2014-07-13 01:04:16 +02:00
|
|
|
node.className = node.className.replace(_classNameRegexp(className), function (everything, leftDelimiter, name, rightDelimiter) {
|
|
|
|
~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2304: Cannot find name '_classNameRegexp'.
|
2014-07-13 01:04:16 +02:00
|
|
|
return leftDelimiter.length + rightDelimiter.length === 2 ? ' ' : '';
|
|
|
|
});
|
2015-03-05 03:15:55 +01:00
|
|
|
}
|