Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in / Register
V
V8
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Linshizhi
  • V8
  • Repository

Switch branch/tag
  • v8
  • test
  • mjsunit
  • es6
  • proxies-prevent-extensions.js
Find file
BlameHistoryPermalink
  • Z Nguyen-Huu's avatar
    Object.preventExtensions should return object even if object is proxy. · 55c33c01
    Z Nguyen-Huu authored Jun 26, 2019
    According to spec https://tc39.es/ecma262/#sec-object.preventextensions, the commit 8e0ef9b9 is missing the last step when object is proxy, it needs to return the object.
    var proxy = new Proxy({}, {});
    var object = Object.preventExtensions(proxy);
    proxy === object; // should be true
    
    Also, add mjsunit test.
    
    Bug: v8:6664
    Change-Id: Ic3688519539f8903ee0bc7e885905a86d195a4db
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1668443
    Commit-Queue: Z Nguyen-Huu <duongn@microsoft.com>
    Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
    Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#62393}
    55c33c01
proxies-prevent-extensions.js 5.26 KB
EditWeb IDE

Replace proxies-prevent-extensions.js

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.