jalangi2 icon indicating copy to clipboard operation
jalangi2 copied to clipboard

Document that strict mode semantics are not preserved by Jalangi

Open christofferqa opened this issue 8 years ago • 3 comments

The following piece of code should print undefined, but prints the global object.

function f() {
  "use strict";
  console.log(this);
}
f();

christofferqa avatar Oct 05 '16 10:10 christofferqa

We do not support strict mode due to inherent limitations of Jalangi 2. Jalangi 2 removes all occurrences of "use strict".

ksen007 avatar Dec 01 '16 16:12 ksen007

@ksen007 is this documented anywhere? Maybe we should document and then close this issue.

On Thu, Dec 1, 2016 at 8:51 AM Koushik Sen [email protected] wrote:

We do not support strict mode due to inherent limitations of Jalangi 2. Jalangi 2 removes all occurrences of "use strict".

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Samsung/jalangi2/issues/111#issuecomment-264227136, or mute the thread https://github.com/notifications/unsubscribe-auth/AALyUZoaaJ-zhKyUL1sdD-cweCWAHSElks5rDvsIgaJpZM4KOpli .

msridhar avatar Dec 01 '16 16:12 msridhar

no. We should update README.

On Dec 1, 2016, at 8:52 AM, Manu Sridharan [email protected] wrote:

@ksen007 is this documented everywhere? Maybe we should document and then close this issue.

On Thu, Dec 1, 2016 at 8:51 AM Koushik Sen [email protected] wrote:

We do not support strict mode due to inherent limitations of Jalangi 2. Jalangi 2 removes all occurrences of "use strict".

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Samsung/jalangi2/issues/111#issuecomment-264227136, or mute the thread https://github.com/notifications/unsubscribe-auth/AALyUZoaaJ-zhKyUL1sdD-cweCWAHSElks5rDvsIgaJpZM4KOpli .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Samsung/jalangi2/issues/111#issuecomment-264227550, or mute the thread https://github.com/notifications/unsubscribe-auth/AAw0OausTR1gr7cad90awRT1BBcSfouZks5rDvthgaJpZM4KOpli.

ksen007 avatar Dec 01 '16 16:12 ksen007