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:
Robert Fancsik
2019-10-25 15:56:37 +02:00
committed by GitHub
parent 100a012931
commit b7aa21ebc7
4 changed files with 129 additions and 55 deletions
-9
View File
@@ -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) {