Skip to content

Instantly share code, notes, and snippets.

@anba
Created February 10, 2014 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anba/eab78b6142cc40adc62e to your computer and use it in GitHub Desktop.
Save anba/eab78b6142cc40adc62e to your computer and use it in GitHub Desktop.
--- opal-orig.js 2014-02-10 18:34:16.493742000 +0100
+++ opal.js 2014-02-10 18:53:40.351110531 +0100
@@ -681,7 +681,9 @@
// }
if (included_in) {
- for (var i = 0, length = included_in.length; i < length; i++) {
+ print("loop-start, included_in.length=" + included_in.length);
+ var i = 0, length = included_in.length;
+ for (; i < length; i++) {
var includee = included_in[i];
var dest = includee._proto;
@@ -695,6 +697,7 @@
Opal.donate(includee, defined, true);
}
}
+ print("loop-done");
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment