js/xpconnect/tests/idl/xpctest_bug809674.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/xpconnect/tests/idl/xpctest_bug809674.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +#include "nsISupports.idl"
    1.11 +/*
    1.12 + * Test interface for https://bugzilla.mozilla.org/show_bug.cgi?id=809674 .
    1.13 + *
    1.14 + * This test makes sure that accessing an attribute marked with
    1.15 + * [implicit_jscontext] will throw without crashing.
    1.16 + */
    1.17 +
    1.18 +[scriptable, uuid(2df46559-da21-49bf-b863-0d7b7bbcbc73)]
    1.19 +interface nsIXPCTestBug809674 : nsISupports {
    1.20 +	[implicit_jscontext] attribute jsval jsvalProperty;
    1.21 +};

mercurial