BYVoid / continuation

JavaScript asynchronous Continuation-Passing Style transformation (deprecated).
Other
388 stars 42 forks source link

Move 'use strict' above #16

Open BYVoid opened 11 years ago

BYVoid commented 11 years ago
function test() {
    'use strict';
    f(obtain());
}

Actual

function test() {
  var _$err;
  'use strict';
  f(function () {
    _$err = arguments[0];
    if (_$err)
      throw _$err;
  });
}