Fix lazy instantiation of external functions 'prototype' property (#3246)
This patch resolves #2302. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
@@ -12,15 +12,6 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
try {
|
||||
({} instanceof assert);
|
||||
assert(false);
|
||||
} catch(e) {
|
||||
assert(e instanceof TypeError);
|
||||
}
|
||||
|
||||
assert.prototype = {}
|
||||
|
||||
try {
|
||||
assert(!({} instanceof assert));
|
||||
} catch(e) {
|
||||
|
||||
Reference in New Issue
Block a user