HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/honger7.komma.pro/node_modules/config-chain/test/get.js
var cc = require("../");

var chain = cc()
    , name = "forFun";

chain
    .add({
        __sample:"for fun only"
    }, name)
    .on("load", function() {
        //It throw exception here
        console.log(chain.get("__sample", name));
        //But if I drop the name param, it run normally and return as expected: "for fun only"
        //console.log(chain.get("__sample"));
    });