~ubuntu-branches/ubuntu/trusty/mozjs24/trusty-proposed

« back to all changes in this revision

Viewing changes to js/src/tests/js1_8_5/regress/regress-596805-1.js

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2014-02-11 21:55:34 UTC
  • Revision ID: package-import@ubuntu.com-20140211215534-m1zyq5aj59md3y07
Tags: upstream-24.2.0
ImportĀ upstreamĀ versionĀ 24.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 
2
/*
 
3
 * Any copyright is dedicated to the Public Domain.
 
4
 * http://creativecommons.org/licenses/publicdomain/
 
5
 */
 
6
 
 
7
var f = function(){};
 
8
for (var y in f);
 
9
f.j = 0;
 
10
Object.defineProperty(f, "k", ({configurable: true}));
 
11
delete f.j;
 
12
Object.defineProperty(f, "k", ({get: function() {}}));
 
13
 
 
14
reportCompare(0, 0, "ok");