Skip to content

Instantly share code, notes, and snippets.

@bkutil
Created October 7, 2016 20:45
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 bkutil/069ac40d624d9eada1e2c7433c3a2690 to your computer and use it in GitHub Desktop.
Save bkutil/069ac40d624d9eada1e2c7433c3a2690 to your computer and use it in GitHub Desktop.
opal #1270
/* Generated by Opal 0.10.0.dev, indentation fixed manually */
/* source: a = true ? 2 : 0 rescue 10 */
(function(Opal) {
Opal.dynamic_require_severity = "error";
var OPAL_CONFIG = { method_missing: true, arity_check: false, freezing: true, tainting: true };
var $a, self = Opal.top, $scope = Opal, nil = Opal.nil, $breaker = Opal.breaker, $slice = Opal.slice, a = nil;
return a = (function() {
try {
(function() {
if ((($a = true) !== nil && (!$a.$$is_boolean || $a == true))) {
return 2
} else {
return 0
};
return nil;
})()
} catch ($err) {
if (Opal.rescue($err, [$scope.get('StandardError')])) {
return 10
} else {
throw $err;
}
}})()
})(Opal);
/* Generated by Opal 0.11.0.dev */
/* source: a = true ? 2 : 0 rescue 10 */
return (a = (function() { try {
if ((($a = true) !== nil && $a != null && (!$a.$$is_boolean || $a == true))) {
return 2
} else {
return 0
}
} catch ($err) {
if (Opal.rescue($err, [Opal.const_get($scopes, 'StandardError', true, true)])) {
try {
return 10
} finally { Opal.pop_exception() }
} else { throw $err; }
}})())
/* git bisect points to this commit fixing the issue: 18be44744da9f03e9f73b2bee8b8bec434e33c30 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment