Chromium Code Reviews

Unified Diff: sdk/lib/_internal/js_runtime/lib/js_helper.dart

Issue 2718513002: Void is not required to be `null` anymore. (Closed)
Patch Set: Fix more places in the VM. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: sdk/lib/_internal/js_runtime/lib/js_helper.dart
diff --git a/sdk/lib/_internal/js_runtime/lib/js_helper.dart b/sdk/lib/_internal/js_runtime/lib/js_helper.dart
index 6e1548d396a3bb7cc40f13fa0de52e07bad54cc7..99fdcc8719a20f2d351bcf5e1bff8d8cb54a3b04 100644
--- a/sdk/lib/_internal/js_runtime/lib/js_helper.dart
+++ b/sdk/lib/_internal/js_runtime/lib/js_helper.dart
@@ -3356,11 +3356,6 @@ listSuperNativeTypeCast(value, property) {
propertyTypeCastError(value, property);
}
-voidTypeCheck(value) {
- if (value == null) return value;
- throw new TypeErrorImplementation(value, 'void');
-}
-
extractFunctionTypeObjectFrom(o) {
var interceptor = getInterceptor(o);
var signatureName = JS_GET_NAME(JsGetName.SIGNATURE_NAME);

Powered by Google App Engine