Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(676)

Unified Diff: src/js/v8natives.js

Issue 1508743002: Delete "Delete" JS builtin (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/js/array.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/v8natives.js
diff --git a/src/js/v8natives.js b/src/js/v8natives.js
index ec61de48de55382098f1167f1ae9e10695f77c4e..7e62dadb051e1b7d9c7628222068974c5067c1a2 100644
--- a/src/js/v8natives.js
+++ b/src/js/v8natives.js
@@ -550,21 +550,6 @@ function GetOwnPropertyJS(obj, v) {
}
-// ES5 section 8.12.7.
-function Delete(obj, p, should_throw) {
- var desc = GetOwnPropertyJS(obj, p);
- if (IS_UNDEFINED(desc)) return true;
- if (desc.isConfigurable()) {
- %DeleteProperty_Sloppy(obj, p);
- return true;
- } else if (should_throw) {
- throw MakeTypeError(kDefineDisallowed, p);
- } else {
- return;
- }
-}
-
-
// ES6, draft 12-24-14, section 7.3.8
function GetMethod(obj, p) {
var func = obj[p];
@@ -1517,7 +1502,6 @@ function GetIterator(obj, method) {
// Exports
utils.Export(function(to) {
- to.Delete = Delete;
to.FunctionSourceString = FunctionSourceString;
to.GetIterator = GetIterator;
to.GetMethod = GetMethod;
« no previous file with comments | « src/js/array.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698