std/jspolyfills #509
Replies: 1 comment
-
It should be made explicit that Nim wont support IE, is Deprecated, is EOL, that can help remove old kludge code, or make it smaller. Edge support is Ok. Edge wont need much polyfills, if any. For browser stuff, I think that everything that can be made to work on the browser is Ok and should be made into Nim, eventually, NodeJS, Araq dont want NodeJS specific code on the repo, thats why I created https://github.com/juancarlospaco/nodejs Get browser name + version should be doable with current code, maybe put that code on a proc somewhere.
|
Beta Was this translation helpful? Give feedback.
-
/cc @juancarlospaco @xflywind how about a stdlib module
std/jspolyfills
to gather all polyfills in 1 placelinks
Math.trunc
polyfill optional? nim-lang/Nim#16144additional API's
note
BigUint64Array
) writing a polyfill may be hard, but writing an auxiliary proc derived from it can be done (eg fix #16542 nim-lang/Nim#16549 (comment))specific polyfilles
BigUint64Array
(missing in safari) refs fix #16542 nim-lang/Nim#16549 (comment)https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigUint64Array#Browser_compatibility
https://bugs.webkit.org/show_bug.cgi?id=190800
nim flag to control what to emit
—jsbrowser:chrome>=86,safari>=45
server could send polyfills depending on user agent, eg
mynimproject.js
split intomynimproject_no_polyfills.js
andpolyfills.js
examples
Beta Was this translation helpful? Give feedback.
All reactions