Skip to content

Commit

Permalink
Deprecate non standard Object methods and ActiveXObject.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 245838009
  • Loading branch information
jDramaix authored and copybara-github committed Apr 29, 2019
1 parent 8a49dfe commit c27f562
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
2 changes: 0 additions & 2 deletions java/elemental2/core/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ load(
)
load("@com_google_jsinterop_generator//:jsinterop_generator.bzl", "jsinterop_generator")

# Removes non standard Object methods.
# TODO(b/36088631): clean up es3.js directly
# Removes @this annotations from some Arrays methods. This annotation confuses the generator
# because it redefine the type parameter defined at type level.
# TODO(b/36088887): Handle correctly @this annotation
Expand Down
21 changes: 0 additions & 21 deletions java/elemental2/core/es3.js.diff
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
400,409d399
< * Executes a function when a non-existent method is called on an object.
< * Mozilla-only.
< *
< * @param {Function} fun
< * @return {*}
< * @see http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/noSuchMethod
< */
< Object.prototype.__noSuchMethod__ = function(fun) {};
<
< /**
547c537
< * @param {...*} var_args
---
Expand Down Expand Up @@ -229,13 +218,3 @@
< * @param {*} str The string to search.
---
> * @param {string} str The string to search.
2395,2403d2279
<
< // JScript extensions.
< // @see http://msdn.microsoft.com/en-us/library/894hfyb4(VS.80).aspx
<
< /**
< * @see http://msdn.microsoft.com/en-us/library/7sw4ddf8.aspx
< * @type {function(new:?, string, string=)}
< */
< function ActiveXObject(progId, opt_location) {}

0 comments on commit c27f562

Please sign in to comment.