Skip to content

Commit

Permalink
elia/prepend: [snapshot]
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Jan 14, 2017
1 parent 4a6830a commit 5443be2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 10 additions & 9 deletions opal/corelib/runtime.js
Expand Up @@ -1259,15 +1259,16 @@

while (parent) {
result = result.concat(parent.$$lan);

// only the actual singleton class gets included in its ancestry
// after that, traverse the normal class hierarchy
if (parent.$$is_singleton && parent.$$singleton_of.$$is_module) {
parent = parent.$$singleton_of.$$super;
}
else {
parent = parent.$$is_class ? parent.$$super : null;
}
parent = parent.$$super;

// // only the actual singleton class gets included in its ancestry
// // after that, traverse the normal class hierarchy
// if (parent.$$is_singleton && parent.$$singleton_of.$$is_module) {
// parent = parent.$$singleton_of.$$super;
// }
// else {
// parent = parent.$$is_class ? parent.$$super : null;
// }
}

return result;
Expand Down
2 changes: 2 additions & 0 deletions spec/filters/unsupported/float.rb
Expand Up @@ -32,6 +32,8 @@
fails "Float#to_s emits a trailing '.0' for a whole number"
fails "Float#to_s emits a trailing '.0' for the mantissa in e format"
fails "Float#to_s returns '0.0' for 0.0"
fails "Marshal.dump Float -Infinity returns a binary string" # TypeError: can't bind singleton method to a different class (expected -Infinity.kind_of?(Float to be true)
fails "Marshal.dump Float Infinity returns a binary string" # TypeError: can't bind singleton method to a different class (expected Infinity.kind_of?(Float to be true)
fails "Math.gamma returns approximately (n-1)! given n for n between 24 and 30" # precision error
fails "Rational#% returns a Float value when the argument is Float"
fails "Rational#** raises ZeroDivisionError for Rational(0, 1) passed a negative Integer"
Expand Down

0 comments on commit 5443be2

Please sign in to comment.