Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Type-annotated the superClass_ property.
Browse files Browse the repository at this point in the history
  • Loading branch information
chihuahua committed Nov 30, 2015
1 parent edbae6e commit a71d534
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions shims/wtf-trace-closure.js
Expand Up @@ -819,14 +819,15 @@ if (!COMPILED &&
var caller = arguments.callee.caller;
if (caller.superClass_) {
// This is a constructor. Call the superclass constructor.
return caller.superClass_.constructor.apply(
return (/** @type {!Function} */ (caller.superClass_)).constructor.apply(
me, Array.prototype.slice.call(arguments, 1));
}

var args = Array.prototype.slice.call(arguments, 2);
var foundCaller = false;
for (var ctor = me.constructor;
ctor; ctor = ctor.superClass_ && ctor.superClass_.constructor) {
ctor; ctor = ctor.superClass_ &&
(/** @type {!Function} */ (ctor.superClass_)).constructor) {
if (ctor.prototype[opt_methodName] === caller ||
ctor.prototype[opt_methodName]['uninstrumented'] === caller) {
foundCaller = true;
Expand Down

0 comments on commit a71d534

Please sign in to comment.