Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number.MAX_SAFE_INTEGER is unknown #145

Open
PavelKastornyy opened this issue Jan 24, 2019 · 0 comments
Open

Number.MAX_SAFE_INTEGER is unknown #145

PavelKastornyy opened this issue Jan 24, 2019 · 0 comments

Comments

@PavelKastornyy
Copy link

This is my code:

let a: number = Number.MAX_VALUE; //OK
let b: number = Number.MAX_SAFE_INTEGER; //ERROR

The error is shown only in Netbeans Editor, the code is compiled without any problems.
Here they say Number.MAX_SAFE_INTEGER must work in ES6.

This is the list of files in lib folder to which nbts plugin is set.

cancellationToken.js		   lib.es2015.d.ts		     lib.es2017.object.d.ts	    lib.esnext.d.ts		      tsserver.js
cs				   lib.es2015.generator.d.ts	     lib.es2017.sharedmemory.d.ts   lib.esnext.full.d.ts	      tsserverlibrary.d.ts
de				   lib.es2015.iterable.d.ts	     lib.es2017.string.d.ts	    lib.esnext.intl.d.ts	      tsserverlibrary.js
diagnosticMessages.generated.json  lib.es2015.promise.d.ts	     lib.es2017.typedarrays.d.ts    lib.esnext.symbol.d.ts	      typescript.d.ts
es				   lib.es2015.proxy.d.ts	     lib.es2018.d.ts		    lib.scripthost.d.ts		      typescript.js
fr				   lib.es2015.reflect.d.ts	     lib.es2018.full.d.ts	    lib.webworker.d.ts		      typescriptServices.d.ts
it				   lib.es2015.symbol.d.ts	     lib.es2018.intl.d.ts	    lib.webworker.importscripts.d.ts  typescriptServices.js
ja				   lib.es2015.symbol.wellknown.d.ts  lib.es2018.promise.d.ts	    pl				      typesMap.json
ko				   lib.es2016.array.include.d.ts     lib.es2018.regexp.d.ts	    protocol.d.ts		      typingsInstaller.js
lib.dom.d.ts			   lib.es2016.d.ts		     lib.es5.d.ts		    pt-br			      watchGuard.js
lib.dom.iterable.d.ts		   lib.es2016.full.d.ts		     lib.es6.d.ts		    README.md			      zh-cn
lib.d.ts			   lib.es2017.d.ts		     lib.esnext.array.d.ts	    ru				      zh-tw
lib.es2015.collection.d.ts	   lib.es2017.full.d.ts		     lib.esnext.asynciterable.d.ts  tr
lib.es2015.core.d.ts		   lib.es2017.intl.d.ts		     lib.esnext.bigint.d.ts	    tsc.js

Could anyone say how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant