@@ -22,8 +22,8 @@ and limitations under the License.
2222/// ECMAScript APIs
2323/////////////////////////////
2424
25- declare const NaN : number ;
26- declare const Infinity : number ;
25+ declare var NaN : number ;
26+ declare var Infinity : number ;
2727
2828/**
2929 * Evaluates JavaScript code and executes it.
@@ -264,7 +264,7 @@ interface ObjectConstructor {
264264/**
265265 * Provides functionality common to all JavaScript objects.
266266 */
267- declare const Object : ObjectConstructor ;
267+ declare var Object : ObjectConstructor ;
268268
269269/**
270270 * Creates a new function.
@@ -313,7 +313,7 @@ interface FunctionConstructor {
313313 readonly prototype : Function ;
314314}
315315
316- declare const Function : FunctionConstructor ;
316+ declare var Function : FunctionConstructor ;
317317
318318/**
319319 * Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
@@ -524,7 +524,7 @@ interface StringConstructor {
524524/**
525525 * Allows manipulation and formatting of text strings and determination and location of substrings within strings.
526526 */
527- declare const String : StringConstructor ;
527+ declare var String : StringConstructor ;
528528
529529interface Boolean {
530530 /** Returns the primitive value of the specified object. */
@@ -537,7 +537,7 @@ interface BooleanConstructor {
537537 readonly prototype : Boolean ;
538538}
539539
540- declare const Boolean : BooleanConstructor ;
540+ declare var Boolean : BooleanConstructor ;
541541
542542interface Number {
543543 /**
@@ -599,7 +599,7 @@ interface NumberConstructor {
599599}
600600
601601/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
602- declare const Number : NumberConstructor ;
602+ declare var Number : NumberConstructor ;
603603
604604interface TemplateStringsArray extends ReadonlyArray < string > {
605605 readonly raw : ReadonlyArray < string > ;
@@ -723,7 +723,7 @@ interface Math {
723723 tan ( x : number ) : number ;
724724}
725725/** An intrinsic object that provides basic mathematics functionality and constants. */
726- declare const Math : Math ;
726+ declare var Math : Math ;
727727
728728/** Enables basic storage and retrieval of dates and times. */
729729interface Date {
@@ -904,7 +904,7 @@ interface DateConstructor {
904904 now ( ) : number ;
905905}
906906
907- declare const Date : DateConstructor ;
907+ declare var Date : DateConstructor ;
908908
909909interface RegExpMatchArray extends Array < string > {
910910 index ?: number ;
@@ -967,7 +967,7 @@ interface RegExpConstructor {
967967 lastMatch : string ;
968968}
969969
970- declare const RegExp : RegExpConstructor ;
970+ declare var RegExp : RegExpConstructor ;
971971
972972interface Error {
973973 name : string ;
@@ -981,7 +981,7 @@ interface ErrorConstructor {
981981 readonly prototype : Error ;
982982}
983983
984- declare const Error : ErrorConstructor ;
984+ declare var Error : ErrorConstructor ;
985985
986986interface EvalError extends Error {
987987}
@@ -992,7 +992,7 @@ interface EvalErrorConstructor {
992992 readonly prototype : EvalError ;
993993}
994994
995- declare const EvalError : EvalErrorConstructor ;
995+ declare var EvalError : EvalErrorConstructor ;
996996
997997interface RangeError extends Error {
998998}
@@ -1003,7 +1003,7 @@ interface RangeErrorConstructor {
10031003 readonly prototype : RangeError ;
10041004}
10051005
1006- declare const RangeError : RangeErrorConstructor ;
1006+ declare var RangeError : RangeErrorConstructor ;
10071007
10081008interface ReferenceError extends Error {
10091009}
@@ -1014,7 +1014,7 @@ interface ReferenceErrorConstructor {
10141014 readonly prototype : ReferenceError ;
10151015}
10161016
1017- declare const ReferenceError : ReferenceErrorConstructor ;
1017+ declare var ReferenceError : ReferenceErrorConstructor ;
10181018
10191019interface SyntaxError extends Error {
10201020}
@@ -1025,7 +1025,7 @@ interface SyntaxErrorConstructor {
10251025 readonly prototype : SyntaxError ;
10261026}
10271027
1028- declare const SyntaxError : SyntaxErrorConstructor ;
1028+ declare var SyntaxError : SyntaxErrorConstructor ;
10291029
10301030interface TypeError extends Error {
10311031}
@@ -1036,7 +1036,7 @@ interface TypeErrorConstructor {
10361036 readonly prototype : TypeError ;
10371037}
10381038
1039- declare const TypeError : TypeErrorConstructor ;
1039+ declare var TypeError : TypeErrorConstructor ;
10401040
10411041interface URIError extends Error {
10421042}
@@ -1047,7 +1047,7 @@ interface URIErrorConstructor {
10471047 readonly prototype : URIError ;
10481048}
10491049
1050- declare const URIError : URIErrorConstructor ;
1050+ declare var URIError : URIErrorConstructor ;
10511051
10521052interface JSON {
10531053 /**
@@ -1076,7 +1076,7 @@ interface JSON {
10761076/**
10771077 * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
10781078 */
1079- declare const JSON : JSON ;
1079+ declare var JSON : JSON ;
10801080
10811081
10821082/////////////////////////////
@@ -1365,7 +1365,7 @@ interface ArrayConstructor {
13651365 readonly prototype : Array < any > ;
13661366}
13671367
1368- declare const Array : ArrayConstructor ;
1368+ declare var Array : ArrayConstructor ;
13691369
13701370interface TypedPropertyDescriptor < T > {
13711371 enumerable ?: boolean ;
@@ -1524,7 +1524,7 @@ interface ArrayBufferConstructor {
15241524 new ( byteLength : number ) : ArrayBuffer ;
15251525 isView ( arg : any ) : arg is ArrayBufferView ;
15261526}
1527- declare const ArrayBuffer : ArrayBufferConstructor ;
1527+ declare var ArrayBuffer : ArrayBufferConstructor ;
15281528
15291529interface ArrayBufferView {
15301530 /**
@@ -1674,7 +1674,7 @@ interface DataView {
16741674interface DataViewConstructor {
16751675 new ( buffer : ArrayBufferLike , byteOffset ?: number , byteLength ?: number ) : DataView ;
16761676}
1677- declare const DataView : DataViewConstructor ;
1677+ declare var DataView : DataViewConstructor ;
16781678
16791679/**
16801680 * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
@@ -1949,7 +1949,7 @@ interface Int8ArrayConstructor {
19491949
19501950
19511951}
1952- declare const Int8Array : Int8ArrayConstructor ;
1952+ declare var Int8Array : Int8ArrayConstructor ;
19531953
19541954/**
19551955 * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
@@ -2224,7 +2224,7 @@ interface Uint8ArrayConstructor {
22242224 from < T > ( arrayLike : ArrayLike < T > , mapfn : ( v : T , k : number ) => number , thisArg ?: any ) : Uint8Array ;
22252225
22262226}
2227- declare const Uint8Array : Uint8ArrayConstructor ;
2227+ declare var Uint8Array : Uint8ArrayConstructor ;
22282228
22292229/**
22302230 * A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
@@ -2498,7 +2498,7 @@ interface Uint8ClampedArrayConstructor {
24982498 */
24992499 from < T > ( arrayLike : ArrayLike < T > , mapfn : ( v : T , k : number ) => number , thisArg ?: any ) : Uint8ClampedArray ;
25002500}
2501- declare const Uint8ClampedArray : Uint8ClampedArrayConstructor ;
2501+ declare var Uint8ClampedArray : Uint8ClampedArrayConstructor ;
25022502
25032503/**
25042504 * A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
@@ -2773,7 +2773,7 @@ interface Int16ArrayConstructor {
27732773
27742774
27752775}
2776- declare const Int16Array : Int16ArrayConstructor ;
2776+ declare var Int16Array : Int16ArrayConstructor ;
27772777
27782778/**
27792779 * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
@@ -3049,7 +3049,7 @@ interface Uint16ArrayConstructor {
30493049
30503050
30513051}
3052- declare const Uint16Array : Uint16ArrayConstructor ;
3052+ declare var Uint16Array : Uint16ArrayConstructor ;
30533053/**
30543054 * A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
30553055 * requested number of bytes could not be allocated an exception is raised.
@@ -3323,7 +3323,7 @@ interface Int32ArrayConstructor {
33233323 from < T > ( arrayLike : ArrayLike < T > , mapfn : ( v : T , k : number ) => number , thisArg ?: any ) : Int32Array ;
33243324
33253325}
3326- declare const Int32Array : Int32ArrayConstructor ;
3326+ declare var Int32Array : Int32ArrayConstructor ;
33273327
33283328/**
33293329 * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
@@ -3597,7 +3597,7 @@ interface Uint32ArrayConstructor {
35973597 from < T > ( arrayLike : ArrayLike < T > , mapfn : ( v : T , k : number ) => number , thisArg ?: any ) : Uint32Array ;
35983598
35993599}
3600- declare const Uint32Array : Uint32ArrayConstructor ;
3600+ declare var Uint32Array : Uint32ArrayConstructor ;
36013601
36023602/**
36033603 * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
@@ -3873,7 +3873,7 @@ interface Float32ArrayConstructor {
38733873
38743874
38753875}
3876- declare const Float32Array : Float32ArrayConstructor ;
3876+ declare var Float32Array : Float32ArrayConstructor ;
38773877
38783878/**
38793879 * A typed array of 64-bit float values. The contents are initialized to 0. If the requested
@@ -4148,7 +4148,7 @@ interface Float64ArrayConstructor {
41484148 from < T > ( arrayLike : ArrayLike < T > , mapfn : ( v : T , k : number ) => number , thisArg ?: any ) : Float64Array ;
41494149
41504150}
4151- declare const Float64Array : Float64ArrayConstructor ;
4151+ declare var Float64Array : Float64ArrayConstructor ;
41524152
41534153/////////////////////////////
41544154/// ECMAScript Internationalization API
0 commit comments