Mon 21 Jul 22:43:21 CEST 2025

This commit is contained in:
sbosse 2025-07-21 23:34:34 +02:00
parent 3826715f0c
commit 701bd3c943

View File

@ -0,0 +1,10 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
exports.createStub = function(obj, propName, value) {
obj.__defineGetter__(propName, function() {
console.warn('Access made to stub: ' + obj.__namespace__ + '.' + propName);
return value;
});
};