-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
upgrade: rusty_v8 0.19.0 #9466
upgrade: rusty_v8 0.19.0 #9466
Conversation
This will allow the tests to pass, but I think something is wrong with ICU in Deno: diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js
index 50631e83..a1ea5612 100644
--- a/cli/tsc/99_main_compiler.js
+++ b/cli/tsc/99_main_compiler.js
@@ -8,10 +8,25 @@
// that is created when Deno needs to type check TypeScript, and in some
// instances convert TypeScript to JavaScript.
+"use strict";
+
// Removes the `__proto__` for security reasons. This intentionally makes
// Deno non compliant with ECMA-262 Annex B.2.2.1
delete Object.prototype.__proto__;
+// TODO(@kitsonk) this is hacky and shouldn't be here at all...
+Intl.Collator = (() => {
+ function Collator() {}
+
+ Collator.prototype = {
+ compare(a, b) {
+ return a < b ? -1 : a > b ? 1 : 0;
+ }
+ }
+
+ return Collator;
+})();
+
((window) => {
/** @type {DenoCore} */
const core = window.Deno.core; |
Ah, yeah, didn't pay attention that the ICU implementation happens later... yeah, maybe it is just best to ignore the tests as is currently done until ICU is implemented and then re-enable them. |
Intl.Collator is not working. I'm investigating it in denoland/rusty_v8#617 |
This reverts commit b51c0d9.
The Happy to land this, but ICU should probably wait for 1.8.0? Maybe we should wait until after 1.7.3 is released. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Waiting on |
Actual ICU implementation will follow in a separate PR