UNPKG

459 BJavaScriptView Raw
1'use strict';
2var DESCRIPTORS = require('../internals/descriptors');
3var fails = require('../internals/fails');
4
5// V8 ~ Chrome 36-
6// https://bugs.chromium.org/p/v8/issues/detail?id=3334
7module.exports = DESCRIPTORS && fails(function () {
8 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
9 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
10 value: 42,
11 writable: false
12 }).prototype !== 42;
13});