diff --git a/tests/jerry/array-prototype-join.js b/tests/jerry/array-prototype-join.js index 96233d0e72..1257572873 100644 --- a/tests/jerry/array-prototype-join.js +++ b/tests/jerry/array-prototype-join.js @@ -74,3 +74,12 @@ obj_2[3] = 4; obj_2.join = Array.prototype.join; assert (obj_2.join() === "1,2,3"); + +/* ES v5.1 15.4.4.5.1. + Checking behavior when the function's this_argument is undefined */ +try { + Array.prototype.join.call(undefined); + assert(false); +} catch (e) { + assert(e instanceof TypeError); +}